#include "widget.h"
#include "ui_widget.h"

#include <QPushButton>
#include <QDebug>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    QPushButton* bt = new QPushButton(this);
    bt->setText("按钮");
    bt->setEnabled(false);

    connect(bt, &QPushButton::clicked, this, &Widget::Click);
}

Widget::~Widget()
{
    delete ui;
}

void Widget::Click()
{
    qDebug() << " haha";
}

